import { createApp } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
import App from './App.vue'
import ComponentPreview from './views/ComponentPreview.vue'
import MiniTools from './index.js'

const routes = [
  { path: '/', component: { template: '<h1>欢迎使用 Mini Tools</h1>' } },
  { path: '/preview', component: ComponentPreview }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

const app = createApp(App)
app.use(router)
app.use(MiniTools)
app.mount('#app') 